/* 设置页面样式 */

.settings-container {
    padding: 1rem 0;
}

.settings-header {
    margin-bottom: 1.5rem;
}

.settings-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.settings-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.nav-item {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.nav-item:hover {
    background-color: var(--primary-light);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* 主要内容区域 */
.settings-main {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.settings-section {
    display: none;
    padding: 1.5rem;
}

.settings-section.active {
    display: block;
}

.settings-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* 表单样式 */
.settings-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.group-label {
    margin-bottom: 0.75rem;
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 滑块容器 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex: 1;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 4px;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    min-width: 40px;
    font-weight: 500;
}

/* 复选框样式 */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    height: auto;
}

.checkbox-wrapper label {
    margin-bottom: 0;
}

/* 单选按钮样式 */
.radio-group {
    margin-bottom: 1.5rem;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-wrapper input[type="radio"] {
    width: auto;
    height: auto;
}

.radio-wrapper label {
    margin-bottom: 0;
}

/* 颜色选择器 */
.color-picker {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-speed);
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--text-color);
    border-radius: 50%;
}

/* 文件上传样式 */
.file-upload {
    position: relative;
    margin-bottom: 0.5rem;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
}

/* 危险区域 */
.danger-zone {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.danger-zone button {
    margin-bottom: 0.5rem;
}

/* 设置页脚 */
.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* 确认对话框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: var(--card-background);
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .settings-content {
        grid-template-columns: 180px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .settings-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .settings-nav {
        margin-bottom: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 0.75rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }
} 